package org.springframework.samples.petclinic.model;

import java.io.Serializable;

public class Sleep implements Serializable {

	public enum SleepType {THREAD_SLEEP, WAIT, ACTIVE_LOOP, SOCKET_READ, INTRINSIC_LOCK, REENTRANT_LOCK, ALL};
	
	private SleepType type;
	
	private long sleepTime;

	public SleepType getType() {
		return type;
	}

	public void setType(SleepType type) {
		this.type = type;
	}

	public long getSleepTime() {
		return sleepTime;
	}

	public void setSleepTime(long sleepTime) {
		this.sleepTime = sleepTime;
	}

	@Override
	public String toString() {
		return "Sleep [type=" + type + ", sleepTime=" + sleepTime + "]";
	}
}
